public class Opp1c_SolveTowers_stigma {
	
	//DONE

	public static void main(String[] args) {

		int numberOfDisks = 32;
		
		Opp1c_TowersOfHanoi_stigma towers = new Opp1c_TowersOfHanoi_stigma(numberOfDisks);
		System.out.println("Solving for "+numberOfDisks+"...");
		
		long startTime = System.nanoTime();
		towers.solve();
		long endTime = System.nanoTime();
		long durationNano = (endTime - startTime);
		long durationMilli = durationNano/1000000;
		long durationSec = durationMilli/1000;
		long durationMin = durationSec/60;
		
		long result = towers.getTotalMoves();
		System.out.println("Number of moves made: "+result);
		System.out.println("Time used:");
		System.out.println(durationMin+ " Minutes or...");
		System.out.println(durationSec+ " Seconds or...");
		System.out.println(durationMilli+ " Milliseconds or...");
		System.out.println(durationNano+ " Nanoseconds");
		
	}

}
